//
//  SettingViewController.m
//  SelectionForYou
//
//  Created by qianfeng on 15-6-12.
//  Copyright (c) 2015年 朱共营. All rights reserved.
//

#import "SettingViewController.h"
#import "RootViewController.h"
#import "SetViewController.h"
#import "EmailViewController.h"
#import "MyFavoriteViewController.h"
@interface SettingViewController ()

@end

@implementation SettingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)homeButton:(UIButton *)sender {
    NSLog(@"%ld",sender.tag);
   // RootViewController *root=[[RootViewController alloc] init];
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (IBAction)myHotButton:(UIButton *)sender {
     NSLog(@"%ld",sender.tag);
    MyFavoriteViewController *myf=[[MyFavoriteViewController alloc] init];
    [self.navigationController pushViewController:myf  animated:YES];
}

- (IBAction)settingButton:(UIButton *)sender {
     NSLog(@"%ld",sender.tag);
    SetViewController *set=[[SetViewController alloc] init];
    [self.navigationController pushViewController:set animated:YES];
}

- (IBAction)tellUsButton:(UIButton *)sender {
     NSLog(@"%ld",sender.tag);
    EmailViewController *email=[[EmailViewController alloc] init];
    [self.navigationController pushViewController:email animated:YES];
    
}
@end
